package com.daxia.bumall.web.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("share")
public class ShareController extends BaseController {
	
	 @RequestMapping(value = "/shareTimeline")
	 public String shareDetail(Long id, Map<String, Object> map) {
		 map.put("n", timelineService.load(id));
		 return "share/timeline";
	 }
	 
	 @RequestMapping(value="/shareNote")
	 public String shareNote(Long id, Map<String, Object> map) {
		 map.put("n", decorateNoteService.load(id));
		 return "share/note";
	 }
}
